import requet from "../utils/requet.js";

/* 用户消息列表 */
export function msgList1(params) {
  return requet({
    url: "/message/list",
    method: "get",
    params
  });
}
/* 用户消息详情 */
export function msgDetail(params) {
  return requet({
    url: "/message/detail",
    method: "get",
    params
  });
}
/* 用户消息已读 */
export function msgRead(data) {
  return requet({
    url: "/message/read",
    method: "put",
    data
  });
}
/* 用户消息全部已读 */
export function msgReadAll(data) {
  return requet({
    url: "/message/read-all",
    method: "put",
    data
  });
}
/* 活动注册消息 */
export function msgRegister(params) {
  return requet({
    url: "/message/register",
    method: "get",
    params
  });
}
/* 用户消息删除 */
export function msgRemove(data) {
  return requet({
    url: "/message/remove",
    method: "DELETE",
    data
  });
}
